package cn.kgc.mapper;

import cn.kgc.pojo.Version;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface VersionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Version record);

    int insertSelective(Version record);

    Version selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Version record);

    int updateByPrimaryKey(Version record);

    List<Version> listVersion();


    Version versionInfo(String aid);
    List<Version> versionInfos(String aid);

    Version newVersionInfo(String appid);


    int insertVersionone(String appid);

    @Select("SELECT id FROM app_version ORDER BY id DESC LIMIT 1")
    String insertID();
}